package com.allen.imsystem.message.model.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@ApiModel(value="PrivateMsgRecord对象", description="")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("pri_msg_record")
public class PrivateMsgRecord extends BaseMsgRecord {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "会话唯一标识id")
    private Long chatId;

    @ApiModelProperty(value = "消息发送方uid")
    private String fromUid;

    @ApiModelProperty(value = "消息接收方uid")
    private String toUid;

    @ApiModelProperty(value = "上传的文件/图片的URL")
    private String resourceUrl;

    @ApiModelProperty(value = "接收方是否已读 0->未读 1>已读")
    private Boolean hasRead;
}
